# @Version        : 1.0
# @Update Time    : 2025/3/18 21:19
# @File           : dict_repository.py
# @IDE            : PyCharm
# @Desc           : 文件描述信息
from advanced_alchemy import repository
from src.models import SysDictType, SysDictData


class DictTypeRepo(repository.SQLAlchemyAsyncRepository[SysDictType]):
    model_type = SysDictType
    count_with_window_function = True


class DictDataRepo(repository.SQLAlchemyAsyncRepository[SysDictData]):
    model_type = SysDictData
    count_with_window_function = True
